package com.dongdongshop.service;

import com.dongdongshop.pojo.TbAddress;
import com.dongdongshop.pojo.TbAreas;
import com.dongdongshop.pojo.TbCities;
import com.dongdongshop.pojo.TbProvinces;
import com.dongdongshop.vo.AddressVo;

import java.util.List;

public interface AddressService {
    List<AddressVo> getAddressByUserId(String username);

    List<TbProvinces> listProvinces();

    List<TbCities> listCities(String provinceid);

    List<TbAreas> listArea(String cityid);

    void addAddress(TbAddress tbAddress);

    void updateDef(Long id, String userId);

    TbAddress selectById(Long id);

    void updateAddress(TbAddress tbAddress);

    void delAddress(Long id);
}
